<?php

require_once '../include/common.inc.php';

if (!checkAdmin()) {
   header("LOCATION:index.php");
   exit;
}

$menu_index = 2;
$page_title = 'TABLA';
$guide_message = 'Customer | Promoter Information | Enquiry';


getMyParam('cid');
$sql="select * from promoter_info where id=$cid";
$query = $db->query($sql);
$rs = $db->fetch_array($query);
$rs['phone']=str_replace("||","-",$rs['phone']);
$rs['mobile']=str_replace("||","-",$rs['mobile']);
$rs['fax']=str_replace("||","-",$rs['fax']);

//Status
if($rs['status']==0) $status="Non-Approve";

if($rs['status']==1) $status="Approved";
						  
if($rs['status']==2) $status="Disapproved";
						  
//Rank
$rank=$RANK_ARY[$rs['rank']];						

//FAQ1--8
if($rs['faq1']==1) $faq1="<font color='red'>YES</font>"; else $faq1="<font color='red'>NO</font>";

if($rs['faq2']==1) $faq2="<font color='red'>YES</font>"; else $faq2="<font color='red'>NO</font>";

if($rs['faq3']==1) $faq3="<font color='red'>YES</font>"; else $faq3="<font color='red'>NO</font>";

if($rs['faq4']==1) $faq4="<font color='red'>YES</font>"; else $faq4="<font color='red'>NO</font>";

if($rs['faq5']==1) $faq5="<font color='red'>YES</font>"; else $faq5="<font color='red'>NO</font>";

if($rs['faq6']==1) $faq6="<font color='red'>YES</font>"; else $faq6="<font color='red'>NO</font>";

if($rs['faq7']==1) $faq7="<font color='red'>YES</font>"; else $faq7="<font color='red'>NO</font>";

if($rs['faq8']==1) $faq8="<font color='red'>YES</font>"; else $faq8="<font color='red'>NO</font>";


include_once('menu_list.php');
require_once PrintEot('a_header');
require_once PrintEot('a_c_promoter_enq');
require_once PrintEot('a_footer');


?>
